﻿<%@ Page Language="C#" Title="账户明细" MasterPageFile="~/member/mMenber.master" AutoEventWireup="true" CodeBehind="shouru.aspx.cs" Inherits="map.member.money.shouru"  %>

<%@ Register Assembly="AjaxControlToolkit, Version=3.0.20820.16598, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"
    Namespace="AjaxControlToolkit" TagPrefix="cc2" %>

<%@ Register Assembly="RuleCode.Common" Namespace="RuleCode.Controls" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head2" runat="server">
    <link href="../../outstyle.css" rel="stylesheet" type="text/css" />
    <script src="../../js/dropdowncontent.js" type="text/javascript"></script>
    <style type="text/css">
        .MainContentDiv
        {
            width:90%;
        } 
        .td_0
        {
            width:15%;
            text-align:right;        
            padding:3px 0px 3px 0px;
        }                    
        .td_1
        {
            width:35%;
            text-align:left;    
            padding:3px 0px 3px 0px;
        }   
           .SubmitCharge
        {
            background:url(/img/btnTmp_orange.png) no-repeat 0px 0px;
            border:none;
            text-align:center;
            padding-left:20px;
            font-weight:bold ;
            cursor:pointer ;
            width:82px;
            height:34px;
        }        
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder3" runat="server">
   <div class="MainContentDiv"> 
        
        <div style=" margin:10px 15px 10px 15px;">
            <table width="100%" cellpadding="0" cellspacing="0">
                 <tr>
                    <td class="td_0">用户ID：</td>  
                    <td class="td_1" style="color:Blue ;"><%= AliApi .appUserId  %></td>
                    <td class="td_0">交易类型：</td>  
                    <td class="td_1" style="color:Blue ;">
                        <asp:DropDownList ID="TransTypeDropDownList" Width="150px" runat="server">
                        </asp:DropDownList>
                    </td>
                 </tr>
                 <tr>
                    <td class="td_0">起始日期：</td>  
                    <td class="td_1">
                        <cc2:CalendarExtender ID="CalendarExtender1" TargetControlID="StartDateTextBox" runat="server">
                        </cc2:CalendarExtender>
                        <asp:TextBox ID="StartDateTextBox" runat="server"></asp:TextBox>
                    </td>
                    <td class="td_0">结束日期：</td>  
                    <td class="td_1">
                        <cc2:CalendarExtender ID="CalendarExtender2" TargetControlID="EndDateTextBox" runat="server">
                        </cc2:CalendarExtender>
                        <asp:TextBox ID="EndDateTextBox" runat="server"></asp:TextBox>
                    </td>
                 </tr>
                 <tr>
                    <td class="td_0">&nbsp;</td>  
                    <td class="td_1" style=" text-align:right;">
                        <asp:Button ID="Button1" runat="server" CssClass="SubmitCharge" Text="查询" 
                            onclick="Button1_Click" />
                    </td>
                    <td colspan="2">&nbsp;</td>
                 </tr>
            </table>
        </div>
        <div style=" margin:10px 15px 10px 15px;">             
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
           Width="100%" DataKeyNames="RECID"
            BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" 
            CellPadding="4" ForeColor="Black" GridLines="Vertical">
            <RowStyle BackColor="#F7F7DE" />
            <Columns>
               <asp:TemplateField  HeaderText ="日期">
                    <ItemTemplate>
                         <%#Convert.ToDateTime(Eval("jccreatedate")).ToShortDateString()%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField  HeaderText ="时间">
                    <ItemTemplate>
                         <%# (new RuleCode.Common.TTime (Convert.ToInt32 ( Eval("jccreatetime")))).StringValue %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField  HeaderText ="类型" DataField ="cbmoneytrantype"/>
                <asp:TemplateField  HeaderText ="收入">
                    <ItemTemplate>
                         <%# (Convert.ToDouble(Eval("cbmoney")) >= 0) ? String.Format("{0:F}", Convert.ToDouble(Eval("cbmoney"))) + "元" : ""%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField  HeaderText ="支出">
                    <ItemTemplate>
                         <%# (Convert.ToDouble(Eval("cbmoney")) < 0) ? String.Format("{0:F}", Convert.ToDouble(Eval("cbmoney"))) + "元" : ""%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField  HeaderText ="是否冻结">
                    <ItemTemplate>
                        <%# (Eval("NoYes_dongjie").ToString ()== RuleCode.Enum.NoYes .No.ToString ())?"非冻结":"已冻结"%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField  HeaderText ="描述">
                    <ItemTemplate>
                        <span title ='<%#Eval("jcdesc") %>'><%# GetSubString( Eval("jcdesc").ToString(),20)%></span> 
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField  HeaderText ="备注">
                    <ItemTemplate>
                         <%# Eval("cbext").ToString()%>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="#CCCC99" />
            <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
            <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
            <cc1:WebPager ID="WebPager1" runat="server" ControlToPaginate="GridView1" OnPageIndexChanged ="WebPager1_PageIndexChanged" 
            PageSize="20" />                 
        </div>
  </div> 
</asp:Content>
